//package com.io.battery_plugin
//
//import android.content.Context
//import android.view.View
//import android.widget.Button
//import io.flutter.plugin.common.BinaryMessenger
//import io.flutter.plugin.platform.PlatformView
//
//class AndroidButton(context: Context?, binaryMessenger: BinaryMessenger?, id: Int, params: Map<String, Any>) : PlatformView {
//    private val mButton: Button
//    override fun getView(): View {
//        return mButton
//    }
//
//    override fun dispose() {}
//
//    init {
//        val button = Button(context)
//        button.text = "this is a button"
//        mButton = button
//        if (params != null && params.containsKey("content")) {
//            button.text = params["content"].toString()
//        }
//    }
//}